package com.community.body.util;

import java.util.UUID;
 
public class LongUUIDGenerator {
    public static long[] generateLongUUID() {
        UUID uuid = UUID.randomUUID();
        
        long mostSignificantBits = uuid.getMostSignificantBits();
        long leastSignificantBits = uuid.getLeastSignificantBits();
        
        long[] longUUID = { mostSignificantBits, leastSignificantBits };
        
        return longUUID;
    }
 
    public static void main(String[] args) {
        long[] longUUID = generateLongUUID();
        System.out.println("Most Significant Bits: " + longUUID[0]);
        System.out.println("Least Significant Bits: " + longUUID[1]);
    }
}